﻿package mortal.game.view.signUp.lineOn
{
    import Framework.Util.*;
    import Message.Game.*;
    import mortal.common.error.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class LineOnRewardProxy extends Proxy
    {

        public function LineOnRewardProxy()
        {
            return;
        }// end function

        public function getOnLineReward() : void
        {
            rmi.iRolePrx.getTodayOnlineReward_async(new AMI_IRole_getTodayOnlineReward(this.onGetLineOnReward, this.onFail));
            return;
        }// end function

        private function onGetLineOnReward(param1:AMI_IRole_getTodayOnlineReward) : void
        {
            NetDispatcher.dispatchCmd(ServerCommand.LineOnRewardGetRewardBack, null);
            return;
        }// end function

        private function onFail(param1:Exception) : void
        {
            MsgManager.showRollTipsMsg(ErrorCode.getErrorStringByCode(param1.code));
            return;
        }// end function

    }
}
